package oldcode;

import io.netty.channel.Channel;

import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;

public class DownChannelState {

	public Channel channel;
	
	public Map<Integer, Integer> pendingMsg = new ConcurrentHashMap<Integer, Integer>();
	
	public String toString()
	{
		boolean isOpen = channel.isOpen();
		boolean isActive = channel.isActive();
		boolean isRegistered = channel.isRegistered();
		boolean isWritable = channel.isWritable();
		
		return channel.toString() + ", pendingMsg:" + pendingMsg.size() + ", isOpen: " + isOpen + ", isActive: " + isActive + ", isRegistered: " + isRegistered + ", isWritable: " + isWritable;
	}
	
}
